﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
using Gammar.Digger.IDAL;

namespace Gammar.Digger.DALFactory
{
    /// <summary>
    /// 自定义对象创建类
    /// </summary>
    public partial class DataAccess
    {
        public static IDbHelper CreateDbHelper(string newConn)
        {
            className = dalSqlServer + ".DbHelper";

            return (Assembly.Load(dalSqlServer).CreateInstance(className, false, BindingFlags.Default, null, new object[] { newConn }, null, null) as IDbHelper);
        }
    }
}
